package com.xjtu.se.homework.client.login.service.impl;

import com.xjtu.se.homework.client.login.dao.ClientLoginDao;
import com.xjtu.se.homework.client.login.dto.ClientSearchDto;
import com.xjtu.se.homework.client.login.dto.ClientUserDto;
import com.xjtu.se.homework.client.login.service.ClientLoginService;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class ClientLoginServiceImpl implements ClientLoginService {
    @Resource
    private ClientLoginDao clientLoginDao;

    @Override
    public List<ClientUserDto> search(ClientSearchDto clientSearchDto) {
        return clientLoginDao.search(clientSearchDto) ;
    }

    @Override
    public void insertUserInfor(ClientUserDto tempUser) {
        clientLoginDao.insertUserInfor(tempUser);
    }

}
